<?php
/**
 * Created by Forever.
 * User: Forever
 * Date: 2018/8/27 0027
 * Time: 上午 9:53
 */
namespace app\system\validate;
use think\Validate;
class User extends Validate{
    // 验证规则
    protected $rule = [
        ['ischeck','require','-10021'],
        ['id','require','-10022'],
        ['user_id','require','-10022'],
        ['commit_reasion','require','-10025'],
        ['check_reasion','require','-10025'],
        ['status','require','-10026'],
        ['shop_id','require','-10022'],
        ['manager_id','require','-10027'],
        
        

        ['cs_id','require','-10015'],
        ['signature','require','-10006'], 

    ];

    protected $scene = [
        'shop'=>['ischeck'],
        'shop_detail'=>['id'],
        'shop_commit'=>['id','user_id','commit_reasion','status'],
        'manager_list'=>['shop_id','ischeck'],
        'manager_detail'=>['id'],
        'manager_commit'=>['id','user_id','status'],
        'sale_list'=>['manager_id','ischeck'],
        
         
        
        'user'=>['code','encryptData','iv','signature'],
    ];

 

}